Integrand size = 23, antiderivative size = 72 \[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\frac {\arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {a+b} d}+\frac {\sinh (c+d x)}{2 a d \left (a+(a+b) \sinh ^2(c+d x)\right )} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3757, 205, 211} \[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\frac {\arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} d \sqrt {a+b}}+\frac {\sinh (c+d x)}{2 a d \left ((a+b) \sinh ^2(c+d x)+a\right )} \]
[In]
[Out]
Rule 205
Rule 211
Rule 3757
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{\left (a+(a+b) x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{d} \\ & = \frac {\sinh (c+d x)}{2 a d \left (a+(a+b) \sinh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\sinh (c+d x)\right )}{2 a d} \\ & = \frac {\arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} \sqrt {a+b} d}+\frac {\sinh (c+d x)}{2 a d \left (a+(a+b) \sinh ^2(c+d x)\right )} \\ \end{align*}
Time = 0.19 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.96 \[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\frac {\frac {\arctan \left (\frac {\sqrt {a+b} \sinh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a+b}}+\frac {\sqrt {a} \sinh (c+d x)}{a+(a+b) \sinh ^2(c+d x)}}{2 a^{3/2} d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(182\) vs. \(2(60)=120\).
Time = 35.27 (sec) , antiderivative size = 183, normalized size of antiderivative = 2.54
method | result | size |
risch | \(\frac {{\mathrm e}^{d x +c} \left ({\mathrm e}^{2 d x +2 c}-1\right )}{d a \left (a \,{\mathrm e}^{4 d x +4 c}+b \,{\mathrm e}^{4 d x +4 c}+2 \,{\mathrm e}^{2 d x +2 c} a -2 b \,{\mathrm e}^{2 d x +2 c}+a +b \right )}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, d a}+\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{\sqrt {-a^{2}-a b}}-1\right )}{4 \sqrt {-a^{2}-a b}\, d a}\) | \(183\) |
derivativedivides | \(\frac {\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{a}+\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} a +2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a +4 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} b +a}-\frac {\left (\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}+\frac {\left (\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}}{d}\) | \(228\) |
default | \(\frac {\frac {-\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{a}+\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} a +2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a +4 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} b +a}-\frac {\left (\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}+\frac {\left (\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}}{d}\) | \(228\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 741 vs. \(2 (60) = 120\).
Time = 0.29 (sec) , antiderivative size = 1555, normalized size of antiderivative = 21.60 \[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int \frac {\operatorname {sech}^{3}{\left (c + d x \right )}}{\left (a + b \tanh ^{2}{\left (c + d x \right )}\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int { \frac {\operatorname {sech}\left (d x + c\right )^{3}}{{\left (b \tanh \left (d x + c\right )^{2} + a\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int { \frac {\operatorname {sech}\left (d x + c\right )^{3}}{{\left (b \tanh \left (d x + c\right )^{2} + a\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\text {sech}^3(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^3\,{\left (b\,{\mathrm {tanh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \]
[In]
[Out]